// 登录接口需要携带参数ts类型
export interface loginForm {
    username:string,
    password:string
}

export interface ResponseData {
    code:number,
    message:string,
    ok:boolean
}

// 登录接口返回数据类型
export interface loginRes extends ResponseData{
    data:string
}


export interface userInfo extends ResponseData{
    data:{
        routes:string[],
        buttons:string[],
        roles:string[],
        name:string,
        avatar:string
    }
}
interface user {
    checkUser:userInfo
}
//定义服务器返回用户信息相关的数据类型
export interface UserRes {
    code:number,
    data:user
}